package com.zhiyou.service;

import com.zhiyou.pojo.User;


public interface UserService {
	public String  validateEmail(String eamil);

	public int insertUser(User user);

	public int loginUser(User user);

	public User selectUserByEmail(String email);

	public void updateUserById(User user);

	public String validateMd5Pass(String md5Pass, String account);

	public void updateMd5Pass(String md5Pass, String account);

	public int countUserByEmail(String email);

	public void saveCodeEmail(String code, String email);

	public int validateEmailCode(String code, String email);

	public void updateImgUrlByEmail(String newName, String email);
	

}
